﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace ScannerSuccessRate.Model
{
    [SugarTable("scanner")]
    public class ScannerModel
    {
        /// <summary>
        /// 主键并且自增 （string不能设置自增）
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        public string ip { get; set; }

        public string code { get; set; }

        public DateTime time { get; set; }

        public override string ToString()
        {
            return $"{{{nameof(id)}={id.ToString()}, {nameof(code)}={code}, {nameof(time)}={time}}}";
        }
    }
}
